package com.dnjn.happiness.emo.api.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dnjn.happiness.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * 考勤记录userHcmQxPtdata对象 emo_user_hcm_qx_ptdata
 * 
 * @author amber
 * @date 2024-03-13
 */
@Schema(name = "UserHcmQxPtdata", description = "考勤记录userHcmQxPtdata")
@Accessors(chain = true)
@Getter
@Setter
@TableName("emo_user_hcm_qx_ptdata")
public class UserHcmQxPtdata extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** PK */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    


    /** 考核日期zkhzq */
    private LocalDate checkDate;

    private String dataType;

    /** 是否删除|0-否 1-是 */
    private String deleted;

    /** 开始时间beguz */
    private String beginTime;

    /** 结束时间enduz */
    private String endTime;

    /** 请假小时stdaz */
    private BigDecimal leaveTime;

    /** 迟到次数z9001 */
    private Integer belateCount;

    /** 早退次数z9002 */
    private Integer earlyCount;

    /** 旷工次数z9020 */
    private Integer absenceCount;

    /** 补卡次数z9021 */
    private Integer makeupCount;

    /** 请假类型描述 */
    private String atext;


    /** 消息类型 S 成功,E 错误 ev_msgty */
    private String msgType;

    /** 消息文本ev_msgtx */
    private String msgText;

    /** 请假类型 */
    private String awart;

    /** 员工工号 zworkcode */
    private String empno;

    /** 人员号 pernr */
    private String personNum;

    /** 开始日期begda */
    private LocalDate startDate;

    /** 结束日期endda */
    private LocalDate endDate;




    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("updateTime", getUpdateTime())
            .append("checkDate", getCheckDate())
            .append("deleted", getDeleted())
            .append("beginTime", getBeginTime())
            .append("endTime", getEndTime())
            .append("version", getVersion())
            .append("leaveTime", getLeaveTime())
            .append("belateCount", getBelateCount())
            .append("earlyCount", getEarlyCount())
            .append("absenceCount", getAbsenceCount())
            .append("makeupCount", getMakeupCount())
            .append("atext", getAtext())
            .append("id", getId())
            .append("msgType", getMsgType())
            .append("msgText", getMsgText())
            .append("awart", getAwart())
            .append("remark", getRemark())
            .append("empno", getEmpno())
            .append("createBy", getCreateBy())
            .append("personNum", getPersonNum())
            .append("createTime", getCreateTime())
            .append("startDate", getStartDate())
            .append("updateBy", getUpdateBy())
            .append("endDate", getEndDate())
            .toString();
    }
}
